/**
 * 模块：医院入驻平台-SysFunction
 */
package design.onekey.controller;

import design.onekey.base.BaseEntity;
import design.onekey.base.Response;
import design.onekey.service.ISysFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
* @Description: SysFunctioncontroller类
* @author
* @date 2020-06-05 04:03:04
* @version V1.0
*/
@RestController
@RequestMapping("/api/sysFunction")
public class SysFunctionController {

   /**
    * iSysFunctionService服务注入
    */
   @Autowired
   private ISysFunctionService iSysFunctionService;


   /**
    * @Title: updatePermission
    * @Description: 动态更新权限，不需要重启服务
    * @return
    * @author blcloak
    * @date 2020-06-12 03:53:34
    */
   @RequestMapping(value = "/updatePermission",method = RequestMethod.POST)
   public Response updatePermission() {
       BaseEntity result = this.iSysFunctionService.updatePermission();
       return  Response.success(result.getStatusMsg());
   }
}
